﻿@{
    ViewBag.Title = "报表";
}
<h3>
    正在跳转，请稍后…………</h3>
@section ScriptAndCss{
    <script type="text/javascript">
        function post(URL, PARAMS) {
            var temp = document.createElement("form");
            temp.action = URL;
            temp.method = "post";
            temp.name = "logonForm";
            temp.id = "logonForm";
            temp.style.display = "none";
            for (var x in PARAMS) {
                var opt = document.createElement("input");
                opt.name = x;
                opt.value = PARAMS[x];
                // alert(opt.name)        
                temp.appendChild(opt);
            }
            document.body.appendChild(temp);                
            temp.submit();
            return temp;
        }

        function redirect() {
            post('@GlobalHelper.ReportURL', {
                username: 'report',
                password: 'report',
                reportedIP: '',
                reportedHostName: '',
                loc: 'en',
                appKind: 'InfoView',
                service: '/InfoViewApp/common/appService.do',
                useLogonToken: 'true',
                persistCookies: 'true',
                backContext: '/InfoViewApp',
                backUrlParents: '1',
                backUrl: '/listing/main.do',
                sessionCookie: 'true',
                prodName: 'BusinessObjects',
                appName: 'SAP BusinessObjects InfoView',
                isFromLogonPage: 'true',
                authType: 'secEnterprise',
                authenticationVisible: 'false',
                cms: 'FJYC-BO:6400',
                cmsVisible: 'false',
                qryStr: ''
            });
        }

        $(document).ready(function () {
            redirect();
        });
    </script>
}
